Skip to content

Release the memory reserved for a start that did not happen - #331

Merged
Shine-neko merged 2 commits into
mainfrom
fix/admission-reservation-release
Nov 23, 2026
Merged

Shine-neko merged 2 commits into
mainfrom
fix/admission-reservation-release

Conversation

@Shine-neko

Copy link
Copy Markdown
Contributor

Memory admission reserves what it admits for 60s, so replicas started one after the other cannot all fit in the same free memory. The reservation is made before the image pull, and was kept when the start returned to wait for a background pull (#323): the next pass refused that very instance on its own reservation, and any other deployment needing that memory, until the pull ended or the reservation expired. docker/t53 failed whenever its image was not cached yet.

Admission now returns a guard that gives the memory back when dropped; each runtime keeps it once its instance runs.

@Shine-neko
Shine-neko force-pushed the fix/admission-reservation-release branch from 1db08dc to 00f90ce Compare November 23, 2026 13:06
@Shine-neko
Shine-neko force-pushed the fix/admission-reservation-release branch from 00f90ce to 9aee40d Compare November 23, 2026 13:24
@Shine-neko
Shine-neko merged commit 5a4a560 into main Nov 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant